Hierarchical grouping of tasks